////////////////////////////////////////////////////////////////////////////////
//(c) Intelliquip, Inc. 2001
////////////////////////////////////////////////////////////////////////////////
//$Log:
// 2    Version 10.0 (Current View)1.1         4/20/2011 4:16:37 PM   Jeff
//      Heigl      IDD#09752: merged session "continue" behavior
// 1    Version 10.0 (Current View)1.0         2/28/2011 9:48:07 AM   Stephen
//      Kish    
//$
//$NoKeywords$
////////////////////////////////////////////////////////////////////////////////
package com.intelliquip.hydraulicselection.control.web;

import javax.servlet.http.HttpServletRequest;

import com.intelliquip.core.documents.DocumentLinkCollection;
import com.intelliquip.core.servlet.SavePDFServlet;
import com.intelliquip.hydraulicselection.SelectorDocumentLinkCreator;
import com.intelliquip.hydraulicselection.UserPreferences;

public class SavePDFServletSelector extends SavePDFServlet {

	@Override
	protected DocumentLinkCollection getDocumentLinkCollection(HttpServletRequest request) throws Exception {
		UserPreferences userPreferences = new HttpSessionAttributeDAO_Selector(request.getSession()).getUserPreferences();
		SelectorDocumentLinkCreator linkCreator = new SelectorDocumentLinkCreator();
		DocumentLinkCollection collection =  linkCreator.createDocumentLinks(userPreferences);
		return collection;
	}

}
